import request from "@/utils/request.js";

/**
 * 机构学员分页
 * @param params
 * @returns {AxiosPromise}
 */
export function listPageGroup(params) {
  return request({
    url: "/teachingPlatformService/api/orgUser/listPageGroup",
    method: "post",
    data: params
  });
}

/**
 * 机构试卷分页列表(教学管理平台机构专用)_v1.1
 * @param params
 * @returns {AxiosPromise}
 */
export function listPageOrgTestPaperForOrg(params) {
  return request({
    url: "/teachingPlatformService/api/orgTestPaper/listPageOrgTestPaperForOrg",
    method: "post",
    data: params
  });
}

/**
 * 禁用机构试卷
 * @param params
 * @returns {AxiosPromise}
 */
export function disabledOrgTestPaper(params) {
  return request({
    url: "/teachingPlatformService/api/orgTestPaper/disabledOrgTestPaper",
    method: "post",
    data: params
  });
}

/**
 * 创建客户备注
 * @param params
 * @returns {AxiosPromise}
 */
export function addOrgRemake(params) {
  return request({
    url: "/teachingPlatformService/api/operatingOrgRemake/addOrgRemake",
    method: "post",
    data: params
  });
}

/**
 * 客户备注分页查询
 * @param params
 * @returns {AxiosPromise}
 */
export function remakeListPage(params) {
  return request({
    url: "/teachingPlatformService//api/operatingOrgRemake/listPage",
    method: "post",
    data: params
  });
}
